package org.squareland.entities;

import android.graphics.Color;
import android.util.Log;

public class BulletEntity extends Entity {
	public BulletEntity() {
		super(1, 1);
		pixels = new int[][] {{Color.RED}};
		lifetime = 1000;
	}
	
	@Override
	public void collisionCollpack(Entity entity, long mills) {
		if (entity != generatedBy) {
			Log.d("COLLISION", "Collision with bullet");
			lifetime = 0;
		}
	}
	
	public Entity generatedBy;
}
